package com.hmall.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "mall_auction")
public class MallAuction {
    @Id
    private Integer id;

    @Column(name = "start_time")
    private Date startTime;

    @Column(name = "end_time")
    private Date endTime;

    @Column(name = "package_no")
    private Long packageNo;

    @Column(name = "package_name")
    private String packageName;

    /**
     * 最低加价
     */
    @Column(name = "lowest_price")
    private BigDecimal lowestPrice;

    @Column(name = "start_price")
    private BigDecimal startPrice;

    /**
     * 0:预热中  1:竞拍中  2:竞拍成功  3:流拍
     */
    private Integer status;

    @Column(name = "create_time")
    private Date createTime;

    /**
     * 竞拍次数
     */
    @Column(name = "auction_count")
    private Integer auctionCount;

    /**
     * 最高价
     */
    @Column(name = "highest_price")
    private BigDecimal highestPrice;

    @Column(name = "margin")
    private BigDecimal margin;

    public BigDecimal getMargin() {
        return margin;
    }

    public void setMargin(BigDecimal margin) {
        this.margin = margin;
    }

    /**
     * 提交人id
     */
    @Column(name = "submit_user_id")
    private Integer submitUserId;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return start_time
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * @param startTime
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /**
     * @return end_time
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * @param endTime
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * @return package_no
     */
    public Long getPackageNo() {
        return packageNo;
    }

    /**
     * @param packageNo
     */
    public void setPackageNo(Long packageNo) {
        this.packageNo = packageNo;
    }

    /**
     * @return package_name
     */
    public String getPackageName() {
        return packageName;
    }

    /**
     * @param packageName
     */
    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    /**
     * 获取最低加价
     *
     * @return lowest_price - 最低加价
     */
    public BigDecimal getLowestPrice() {
        return lowestPrice;
    }

    /**
     * 设置最低加价
     *
     * @param lowestPrice 最低加价
     */
    public void setLowestPrice(BigDecimal lowestPrice) {
        this.lowestPrice = lowestPrice;
    }

    /**
     * @return start_price
     */
    public BigDecimal getStartPrice() {
        return startPrice;
    }

    /**
     * @param startPrice
     */
    public void setStartPrice(BigDecimal startPrice) {
        this.startPrice = startPrice;
    }

    /**
     * 获取0:预热中  1:竞拍中  2:竞拍成功  3:流拍
     *
     * @return status - 0:预热中  1:竞拍中  2:竞拍成功  3:流拍
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置0:预热中  1:竞拍中  2:竞拍成功  3:流拍
     *
     * @param status 0:预热中  1:竞拍中  2:竞拍成功  3:流拍
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取竞拍次数
     *
     * @return auction_count - 竞拍次数
     */
    public Integer getAuctionCount() {
        return auctionCount;
    }

    /**
     * 设置竞拍次数
     *
     * @param auctionCount 竞拍次数
     */
    public void setAuctionCount(Integer auctionCount) {
        this.auctionCount = auctionCount;
    }

    /**
     * 获取最高价
     *
     * @return highest_price - 最高价
     */
    public BigDecimal getHighestPrice() {
        return highestPrice;
    }

    /**
     * 设置最高价
     *
     * @param highestPrice 最高价
     */
    public void setHighestPrice(BigDecimal highestPrice) {
        this.highestPrice = highestPrice;
    }

    /**
     * 获取提交人id
     *
     * @return submit_user_id - 提交人id
     */
    public Integer getSubmitUserId() {
        return submitUserId;
    }

    /**
     * 设置提交人id
     *
     * @param submitUserId 提交人id
     */
    public void setSubmitUserId(Integer submitUserId) {
        this.submitUserId = submitUserId;
    }
}